<?php

namespace mpend\modules\dynamic\controllers;

use Yii;
use mpend\components\Controller;
use mpend\models\DynamicCommentSearch;

/**
 * 动态评论接口
 * CommentController controller for the `dynamic` module
 */
class CommentController extends Controller {

    /**
     * @inheritdoc
     */
    public function actionIndex($id) {
        $modelClass = new DynamicCommentSearch($id);
        return $modelClass->search($id);
    }

}
